/**
   A class to process names.
*/
public class Names
{
   /**
      Turns a name "First Last" into a name "Last, First"
      @param firstLast a name such as "Harry Smith", with a space separating
      the first and last name.
      @return a name such as "Smith, Harry", with the last name followed by
      a comma, a space, and the first name.
   */
   public String getLastFirst(String firstLast)
   {
      String strArr = firstLast.substring(0, firstLast.indexOf(" "));
      String strArr2 = firstLast.substring(strArr.length()+1, firstLast.length());
      return strArr2 + ", " + strArr;
   }
}